package com.dragonwu.stock.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author DragonWu
 * @date 2022-09-29 16:51
 **/
@RestController
@RequestMapping("/stock")
public class StockController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/test01/{s}")
    public String test01(@PathVariable String s) throws Exception{
        System.out.println("this_____"+"test01:"+port+"："+s);
        return "test01:"+port+"："+s;
    }
}
